package com.ty.tour.common.utils;

import java.io.Serializable;
import java.util.List;


public class Result<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	int page;// 起始页
	int limit;// 页数大小
	int total;// 数据数量
	int status;
	String msg;// 信息
	List<T> data;// 返回数据
	T example;// 任何类型条件

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> locaList) {
		this.data = locaList;
	}

	public T getExample() {
		return example;
	}

	public void setExample(T example) {
		this.example = example;
	}

	@Override
	public String toString() {
		return "Result [page=" + page + ", limit=" + limit + ", total=" + total + ", status=" + status + ", msg=" + msg
				+ ", data=" + data + ", example=" + example + "]";
	}

	
}
